package cn.kane.visitor;

import java.util.ArrayList;
import java.util.Collection;

public class TestMainEntrance {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		IVisitor visitor = new ConCreateVisitor();
		
		IElement strEm = new StringElement("string");
		strEm.accept(visitor);
		IElement numEm = new NumberElement(new Integer("100"));
		numEm.accept(visitor);
		
		System.out.println("--------------------");
		
		Collection<IElement> value = new ArrayList<IElement>(10); 
		value.add(numEm);
		value.add(strEm);
		IElement collectionEm = new CollectionElement(value);
		collectionEm.accept(visitor);
		
	}

}
